package com.htjx.mall.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.htjx.mall.commons.mappers.RegionMapper;
import com.htjx.mall.commons.models.region.Area;
import com.htjx.mall.commons.models.region.City;
import com.htjx.mall.commons.models.region.Province;

@Service
public class RegionService {

	@Autowired
	private RegionMapper regionMapper;
	
	public List<Province> selectProvinces(){
		return regionMapper.selectProvince();
	}
	
	public List<City> selectCity(String province){
		return regionMapper.selectCity(province);
	}
	
	public List<Area> selectArea(String city){
		return regionMapper.selectArea(city);
	}
	
}
